import React, { useState} from 'react'

function Index(props) {
    // const [ss, setss] = useState([])
    const {ss}=props
  return (
    <div>
        {
                ss.length > 0 ? <div className={styles.hh}>
                    <List >
                        {
                            ss.map((item, index) => {
                                return <List.Item key={index}>{item.name}</List.Item>
                            })

                        }
                    </List>
                </div> : ''
            }
    </div>
  )
}

export default Index
